import {ROUTE_NAME_LOGIN} from "@/constant/router_const.js";

export default {
    name: ROUTE_NAME_LOGIN,
    path: 'login',
    component: () => import('@/views/login/Login.vue'),
    children: [
        // 登录页面默认访问路由重定向配置
        {
            name: 'loginDefault',
            path: '',
            redirect: {name: 'loginByPwd'},
        },
        // 通过密码登录路由配置
        {
            name: 'loginByPwd',
            path: 'pwd',
            component: () => import('@/views/login/components/LoginFormByPwd.vue'),
        },
        // 通过电子邮箱登录路由配置
        {
            name: 'loginByEmail',
            path: 'email',
            component: () => import('@/views/login/components/LoginFormByMail.vue'),
        },
    ]
}